{"version":3,"file":"useroptions.min.js","sources":["useroptions.js"],"names":["BX","namespace","Grid","UserOptions","parent","userOptions","userOptionsActions","url","this","options","actions","init","prototype","eval","err","console","warn","getCurrentViewName","getOptions","current_view","getViewsList","views","getCurrentOptions","name","result","type","isPlainObject","getUrl","action","util","add_url_param","GRID_ID","getContainerId","bxajaxid","getAjaxId","getActions","getAction","update","newOptions","setColumns","columns","callback","join","save","setColumnsNames","view_id","custom_names","setColumnSizes","sizes","expand","reset","forAll","data","set_default_settings","delete_user_settings","view_settings","setSort","by","order","setPageSize","pageSize","isNumber","parseInt","setExpandedRows","ids","isArray","setCollapsedGroups","resetExpandedRows","saveForAll","batch","bath","self","ajax","post","res","JSON","parse","error","isFunction","onCustomEvent","getContainer"],"mappings":"CAAC,WACA,YAEAA,IAAGC,UAAU,UAUbD,IAAGE,KAAKC,YAAc,SAASC,EAAQC,EAAaC,EAAoBC,GAEvEC,KAAKC,QAAU,IACfD,MAAKE,QAAU,IACfF,MAAKJ,OAAS,IACdI,MAAKD,IAAM,IACXC,MAAKG,KAAKP,EAAQC,EAAaC,EAAoBC,GAGpDP,IAAGE,KAAKC,YAAYS,WACnBD,KAAM,SAASP,OAAQC,YAAaC,mBAAoBC,KAEvDC,KAAKD,IAAMA,GACXC,MAAKJ,OAASA,MAEd,KACCI,KAAKC,QAAUI,KAAKR,aACnB,MAAMS,KACPC,QAAQC,KAAK,mEAGd,IACCR,KAAKE,QAAUG,KAAKP,oBACnB,MAAMQ,KACPC,QAAQC,KAAK,6EAIfC,mBAAoB,WAEnB,GAAIR,GAAUD,KAAKU,YAEnB,OAAO,gBAAkBT,GAAUA,EAAQU,aAAe,MAG3DC,aAAc,WAEb,GAAIX,GAAUD,KAAKU,YAEnB,OAAO,SAAWT,GAAUA,EAAQY,UAGrCC,kBAAmB,WAElB,GAAIC,GAAOf,KAAKS,oBAChB,IAAII,GAAQb,KAAKY,cACjB,IAAII,GAAS,IAEb,IAAID,IAAQF,GACZ,CACCG,EAASH,E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